package cn.sinata.wanglin.adapter;

import com.facebook.drawee.view.SimpleDraweeView;
import com.xilada.xldutils.adapter.BaseRecyclerAdapter;
import com.xilada.xldutils.adapter.util.ViewHolder;

import java.util.List;

import cn.sinata.wanglin.R;
import cn.sinata.wanglin.model.Member;
import cn.sinata.wanglin.utils.ImageUtil;

/**
 *
 * Created by liaoxiang on 16/12/23.
 */

public class MemberAdapter extends BaseRecyclerAdapter<Member>{
    public MemberAdapter(List<Member> mData) {
        super(mData, R.layout.item_member_layout);
    }

    @Override
    public void onBind(int position, Member member, ViewHolder holder) {
        SimpleDraweeView imageView = holder.bind(R.id.image);
        imageView.setImageURI(ImageUtil.parseImageUri(member.getHeadUrl()));
    }
}
